package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 中国区域机构代码 实体类
 *
 * @author Uchihashiamu
 */
@Data
@TableName("nova_china_org_code")
@Schema(description = "ChinaOrgCode对象")
public class ChinaOrgCodeEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id 主键雪花算法id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.INPUT)
	@Schema(description = "主键id")
	private Long id;
	/**
	 * 名称
	 */
    @Schema(description = "名称")
    @TableField("name")
	private String name;
	/**
	 * 级别
	 */
    @Schema(description = "级别")
    @TableField("level")
	private Integer level;
	/**
	 * 父编码
	 */
    @Schema(description = "父编码")
    @TableField("parent_id")
	private Long parentId;

}
